<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta name="format-detection" content="telephone=no, address=no, email=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="misapplication-tap-highlight" content="no" />
		<meta name="HandheldFriendly" content="true" />
		<title>登录</title>
		<link rel="stylesheet" href="css/mui.min.css" type="text/css" charset="utf-8" />
		<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
		<style>
			.mui-table-view-cell{background:#fff;border-top:1px solid #ddd;border-bottom:1px solid #ddd;}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav mui-header">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">设置</h1>
		</header>
		<div class="mui-content">
			<ul class="mui-table-view mui-table-view-chevron">
				<li class="mui-table-view-cell">
					是否允许该应用向我发送通知
					<div class="mui-switch mui-active mui-switch-mini" id="mySwitch">
						<div class="mui-switch-handle"></div>
					</div>
				</li>
			</ul>
		</div>

	</body>
	<script src="js/resize.js"></script>
	<script src="js/mui.min.js"></script>
	<script src="js/app.js"></script>
	<script type="text/javascript" src="js/update.js"></script>
	<script>
		(function($, doc) {
			$.plusReady(function() {
				/*是否开启消息通知功能*/
				document.getElementById("mySwitch").addEventListener("toggle",function(event){
				  if(event.detail.isActive){ //开启功能
				    console.log("你启动了开关");
				  }else{ //关闭功能
				    console.log("你关闭了开关");  
				  }
				})
			})
		}(mui, document))
	</script>

</html>